package com.xiaojimao.Pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
@TableName("article_comment")
public class ArticleComment {

    @TableId(type = IdType.AUTO)
    private Long id;
    @NotBlank(message = "评论的文章id不能为空")
    private Long articleId;
    private Long userId;
    @NotBlank(message = "评论内容不能为空!")
    private String content;
    private String userNickName;
    private String userAvatar;
    /**
     * 审核状态 0 审核不通过 1 审核通过展示 2 审核中
     */
    private Integer status;
    private LocalDateTime createTime;
}
